﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp2
{
    class Animal
    {
        public int leg { get; set; }
        public void food() {
            Console.WriteLine("吃饭");
        }
        public void walk() {
            Console.WriteLine("滑铲");
        }
        public void play() {
            Console.WriteLine("玩");
        }
        public virtual void hobby()
        {
            Console.WriteLine("爱好：");
        }
    }
}
